// 引入 request 文件
import request from './index.js'
// import axios from "axios";
// import { json } from 'node:stream/consumers';

export const fetchUserCaptcha = (iphone) => {
	return request({
		url: `/sso/authCode`,
		method: 'Post',
    data:{
      phone: iphone
    }
	})
}

export const fetchCaptchaToken = (data) => {
	return request({
		url: `/sso/loginByPhoneCode`,
		method: 'Post',
		data: data
	})
}

export const signOut = () => {
	return request({
		url: `/sso/logout`,
		method: 'Post',
	})
}


